<?php

namespace app\common\func;

class Constant
{

    public static $agentId = "50876363";

    //产品可进行调价天数限制
    public static $adjustRateDayLimit = [
        1 => 150,//嘉联
        4 => 150,//嘉联
        5 => 150,//嘉联
    ];

    //产品修改默认费率天数限制
    public static $editRateDayLimit = [
        1 => 30,//嘉联
        4 => 30,//易生
        5 => 30,//易生
    ];

    //产品对应默认费率
    public static $defaultRate = [
        1 => "0.60",//嘉联
        4 => "0.60",//易生
        5 => "0.60",//易生
    ];

    //最低费率
    public static $minRate = [
        1 => "0.55",
        4 => "0.55",
        5 => "0.55",
    ];

    //最高费率
    public static $maxRate = [
        1 => "0.63",
        4 => "0.63",
        5 => "0.63",
    ];

    //绑定后该天数内激活
    public static $standardDay = [
        1 => 120,
        4 => 120,
        5 => 120,
    ];

    //利率与分润对应表（分润代表万分之几）
    public static $profitList = [
        ["rate" => "0.55","profit" => "2"],
        ["rate" => "0.56","profit" => "3"],
        ["rate" => "0.57","profit" => "4"],
        ["rate" => "0.58","profit" => "5"],
        ["rate" => "0.59","profit" => "6"],
        ["rate" => "0.60","profit" => "7"],
        ["rate" => "0.61","profit" => "8"],
        ["rate" => "0.62","profit" => "9"],
        ["rate" => "0.63","profit" => "10"],
    ];

    //分润机构、核心每级别增加值（分润代表万分之几）
    public static $profitStep = "0.5";

    //产品ID对应表名
    public static $productTable = [
        "1" => "transaction_data_jl",
        "4" => "transaction_data_ys",
        "5" => "transaction_data_sft",
    ];

    //产品ID对应产品名称
    public static $productName = [
        "1" => "嘉联",
        "4" => "易生",
        "5" => "盛付通",
    ];

    //认购等级对应政策中的字段
    public static $buyLevel = [
        "AG",
        "JG",
        "HX",
    ];

    //认购等级对应政策中的字段
    public static $levelAlia = [
        "AG" => "agent",
        "JG" => "agency",
        "HX" => "core",
    ];

    public static $levelInfo = [
        "agent" => ["code" => "AG","name" => "代理"],
        "agency" => ["code" => "JG","name" => "机构"],
        "core" => ["code" => "HX","name" => "核心"],
    ];

    //--------------微信支付---------------------

    public static $appId = "wxaac5e6c50e3a1fd2";
    public static $key = "1f0f70bf2b5ad94c7387e64c16dc455a";

}
